﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ST.Buz.Base.Entity
{
	/// <summary>
	/// 短信发送日志
	/// </summary>
	[Table("Sys_SmsLog")]
	public partial class Sys_SmsLog
	{
		[Key]
		[Column("ID")]
		public int ID { get; set; }

		/// <summary>
		/// 相关联的表名
		/// </summary>
		[Column("TableID")]
		public int TableID { get; set; }

		/// <summary>
		/// 相关联的表ID
		/// </summary>
		[Column("InfoID")]
		public int InfoID { get; set; }

		/// <summary>
		/// 发送链接
		/// </summary>
		[Column("ReqUrl")]
		[StringLength(2000, ErrorMessage = "{0}长度不能超过{1}")]
		public string ReqUrl { get; set; }

		/// <summary>
		/// 请求方式
		/// </summary>
		[Column("ReqMethod")]
		[StringLength(10, ErrorMessage = "{0}长度不能超过{1}")]
		public string ReqMethod { get; set; }

		/// <summary>
		/// 应用ID
		/// </summary>
		[Column("ReqData")]
		[StringLength(1000, ErrorMessage = "{0}长度不能超过{1}")]
		public string ReqData { get; set; }

		/// <summary>
		/// 短信发送状态
		/// </summary>
		[Column("SmsState")]
		public int SmsState { get; set; }

		/// <summary>
		/// 创建时间
		/// </summary>
		[Column("AddDate")]
		public DateTime AddDate { get; set; }

		/// <summary>
		/// 创建人ID
		/// </summary>
		[Column("AddManID")]
		[JsonIgnore]
		public int AddManID { get; set; }

		/// <summary>
		/// 创建人
		/// </summary>
		[Column("AddManName")]
		[StringLength(20, ErrorMessage = "{0}长度不能超过{1}")]
		public string AddManName { get; set; }

	}
}
